package com.xiaoge.invokeflow;

import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.stereotype.Component;

/**
 * TODO
 * 		@Component、@ManagedBean、@Named 一样的功能
 * 		具体看ClassPathScanningCandidateComponentProvider下的	registerDefaultFilters方法
 *
 * TODO
 * 		@Lookup 它会每次都去容器里面找对应名称的bean
 *
 * @author <a href="mailto:1330137071@qq.com">Zhang Xiao</a>
 * @since
 */
@Component
//@ManagedBean
//@Named
public class Car {

	public String getName() {
		return "car";
	}

	@Lookup(value = "dog")
	public Dog getDog() {
		return null;
	}

	@Component
	public static class Cat {

	}

}
